package HelloWorld;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;


/**
 * Created by IntelliJ IDEA.
 * User: Irina
 * Date: 06.10.12
 * Time: 1:09
 * To change this template use File | Settings | File Templates.
 */
public class Main {
    public static void main(String args[]){
        BeanFactory factory = new XmlBeanFactory(new FileSystemResource("config.xml"));
        HelloWorldInterface greetingService = (HelloWorldInterface) factory.getBean("sayHello");
        greetingService.sayHelloWorld();

    }
}
